package br.com.vision.util.text;

import org.apache.commons.lang3.StringUtils;

import br.com.vision.util.annotations.UpperCase;
import br.com.vision.util.reflection.ReflectionUtils;

public class ConversaoStringUpperCase extends ConversaoString {

	@Override
	protected String converteValor(String value) {
		return StringUtils.upperCase(value);
	}

	@Override
	protected boolean isClasseAnotadaComAlteracaoDeValor(Class<?> clazz) {
		if (!ReflectionUtils.isClasseAnotada(UpperCase.class, clazz)) {
			return false;
		}

		return true;
	}

}
